package it.cqupt.dao.system;

import it.cqupt.domain.system.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    List<User> findAll();
    User findById(String id);
    int delete(User user);
    int save(User user);
    int update(User user);

    void deleteUserRole(String userId);

    void insertUserRole(@Param("userId")String userId, @Param("roleId")String roleId);

    User findByEmailAndPwd(@Param("email") String email,@Param("password") String password);
}
